package demo2;

import java.util.Comparator;

public class ScoreCompare implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
       return o1.age - o1.age;
        //          return o1.age.compareTo(o2.age);
    }
}
